package com.homson.servicedomain.factory;


import com.homson.coreservice.servicecommon.enumeration.TransTypeEnum;
import com.homson.servicedomain.processor.AbstractTransEventProcessor;
import org.springframework.stereotype.Component;

import java.util.function.Function;

/**
 * @author: homson_leo
 * @contact: hey_超级巨星（Homson_Leo）- 刘泓岑 1196816884@qq.com
 * @time: 2025/11/1 7:38 PM
 **/
@Component
public class TransEventProcessFactory extends AbstractFactory<TransTypeEnum, AbstractTransEventProcessor>{
    @Override
    public Class<AbstractTransEventProcessor> getClazz() {
        return AbstractTransEventProcessor.class;
    }
    
    @Override
    public Function<AbstractTransEventProcessor, TransTypeEnum> vkFunction() {
        return AbstractTransEventProcessor::getTransType;
    }
}
